﻿<?php
$db2=mysqli_connect('localhost','root','','db');
$create='create table data(id int ,year int,month int,day int) charset=utf8';
$bool_create=mysqli_query($db2, $create);
if($bool_create){
    echo "创建数据库成功";
}else{
    echo "失败";
}
mysqli_close($db2);
?>